import os


class Config:
    SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', 'mysql+pymysql://root:123123@localhost/courseimooc')
    SQLALCHEMY_TRACK_MODIFICATIONS = False

# Redis 配置
REDIS_HOST = 'localhost'
REDIS_PORT = 6379
REDIS_DB = 0

# RabbitMQ 配置
RABBITMQ_HOST = ''  # 主机名，一般为 localhost
RABBITMQ_PORT = 5672  # 端口号，默认是 5672
RABBITMQ_USER = ''  # 用户名，默认是 guest
RABBITMQ_VIRTUAL_HOST = '/'  # 可根据实际情况修改
RABBITMQ_PASSWORD = ''  # 密码，默认是 guest